package org.wms.minbearwcs.serivce.order;

import org.wms.minbearwcs.dao.inbound.inf.InboundOrderDao;
import org.wms.minbearwcs.dao.inbound.inf.InboundOrderDetailDao;
import org.wms.minbearwcs.dao.storage.inf.NormalStorageDao;
import org.wms.minbearwcs.entity.PO.wcs.storage.NormalStorage;
import org.wms.minbearwcs.entity.PO.wcs.storage.type.NormalPointType;

@Deprecated
//@Component
public class InboundOrderManager {

    private final InboundOrderDao inboundOrderDao;
    private final InboundOrderDetailDao inboundOrderDetailDao;

    private final NormalStorageDao normalStorageDao;

    public InboundOrderManager(InboundOrderDao inboundOrderDao, InboundOrderDetailDao inboundOrderDetailDao, NormalStorageDao normalStorageDao) {
        this.inboundOrderDao = inboundOrderDao;
        this.inboundOrderDetailDao = inboundOrderDetailDao;
        this.normalStorageDao = normalStorageDao;
    }

    private Runnable MissionDispatcher(){
        return ()->{
            NormalStorage normalStorage = normalStorageDao.selectOneNullPalletByType(NormalPointType.INBOUND_EXCHANGE_AREA);
        };
    }
}
